package com.project.mapper;

import com.project.entity.Discuss;
import com.project.entity.KnowLedge;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//农业操作
@Mapper
public interface DiscussMapper {

    //根据农业id查询所有评论
    public List<KnowLedge> findById(@Param("knowledgeId") Integer knowledgeId);


    //添加数据
    public void insert(@Param("discuss")Discuss discuss);


   }
